import Vue from 'vue'
import VueRouter from 'vue-router'
import builidinformation from '../views/BuildingInformationManagement/BuildingInformation'
import dormitoryinformation from '../views/BuildingInformationManagement/DormitoryInformation'
// import test from '../views/BuildingInformationManagement/testVue'
import welcome from '../views/WelcomeStuManagement'
import nav from '../components/nav.vue'
import stuinfo from "../views/StudentInformation"
import UserLogin from "@/views/UserLogin"
import UserRegister from "@/views/UserRegister"
import stuservice from "@/views/StudentService"

Vue.use(VueRouter)
// const routes = []

const router = new VueRouter({
    routes: [{
            path: '/',
            component: UserLogin
        },
        {
            path: '/UserRegister',
            component: UserRegister
        },
        {
            path: '/nav',
            component: nav,
            children: [{
                    path: '/welcome',
                    component: welcome
                },
                {
                    path: '/builidinformation',
                    component: builidinformation
                },
                {
                    path: '/dormitoryinformation',
                    component: dormitoryinformation
                },
                // {
                //     path: '/test',
                //     component: test
                // },
                {
                    path: '/stuinfo',
                    component: stuinfo
                },
                {
                    path: '/stuservice',
                    component: stuservice
                }
            ]
        }
    ]
})

export default router